/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao.factory;

import interfaces.IDAOCita;

/**
 *
 * @author Usuario
 */
public class DAOCitaFactory {
       private final static IDAOCita oIDAOCita  = getDAOClass();
    
    private DAOCitaFactory() {}
    
    private static IDAOCita getDAOClass() {
        try {
        	
       		return (IDAOCita) new dao.concreto.DaoCita();
        	
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
   
    public static IDAOCita getDAO() {
		return oIDAOCita;
    }

}
